package com.designpatternspart2.behavioraldesignpatterns.commandpattern;

/**
 *
 * @author Lance
 */
public class MealInvoker
{

    private Command command;

    public MealInvoker(Command command)
    {
        this.command = command;

    }

    public void invoke()
    {
        getCommand().execute();
    }

    public void setCommand(Command command)
    {
        this.command = command;

    }

    public Command getCommand()
    {
        return command;
    }
}
